import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const useCounterStore = defineStore('counter', () => {
  const count = ref(10)
  const data= ref({})
  const sum = computed(() => count.value +1)
  const PPTData = localStorage.getItem('contentPPT')

  
  const countAdd = () => {
    count.value++
    console.log(count.value);
  }

  return { count, sum, countAdd ,data,PPTData}
},{presist:true})

